export const setUser = (state, user) => {
  state.userId = user.userId || '';
  state.userNo = user.userNo || '';
  state.userName = user.name || '';
  state.mobile = user.mobile || '';
  state.icon = user.icon || '';
  state.roles = user.roles || [];
  state.permissions = user.permissions || [];
  state.menus = user.menus || [];
};
